package com.threeti.mecool.legacy.domain.model.basicdata.biz;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.threeti.mecool.shared.util.AbstractFlatRawTreeNode;

/** 通路类别(遗留) */
@Entity
@Table(name = "MD_POS_KIND")
public class PosKindLegacy extends AbstractFlatRawTreeNode<String> {

  @Id
  @Column(name="POS_KIND_CODE")
  private String code;

  @Column(name="P_POS_KIND_CODE")
	private String parentCode;

  @Column(name="POS_KIND_NAME")
  private String name;
  
  @Override
  public String getId() {
    return code;
  }
  
  @Override
  public String getParentId() {
    return parentCode;
  }
  
  @Override
  public String getName() {
    return name;
  }

  @Override
  public String toString() {
    return "PosKindLegacy [code=" + code + ", name=" + name + ", parentCode=" + parentCode + "]";
  }
	
	
}
